//
//  LTAESTool.h
//  LTChat
//
//  Created by 俊松何 on 2018/1/8.
//  Copyright © 2018年 俊松何. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface LTAESTool : NSObject

+(NSData *)AES256ParmEncryptWithKey:(NSString *)key Encrypttext:(NSData *)text;   //加密
+(NSData *)AES256ParmDecryptWithKey:(NSString *)key Decrypttext:(NSData *)text;   //解密
+(NSString *) aes256_encrypt:(NSString *)key Encrypttext:(NSString *)text;
+(NSString *) aes256_decrypt:(NSString *)key Decrypttext:(NSString *)text;


//加密
+ (NSString *)decryptAES:(NSString *)content;
//解密
+ (NSString *)encryptAES:(NSString *)content;

//加密注册参数
+ (NSString *)registerEncryptAES:(NSString *)content;


//加密
+ (NSString *)decryptAES:(NSString *)content
                     key:(NSString *)key
                 kVector:(NSString *)kVector;
//解密
+ (NSString *)encryptAES:(NSString *)content
                     key:(NSString *)key
             kInitVector:(NSString *)kInitVector;

@end
